package com.wxyzz.canteenadmin.order.orderList.mapper;

import com.wxyzz.canteenadmin.order.orderList.vo.MemberInfoVo;
import com.wxyzz.canteenadmin.order.orderList.vo.OrderListVo;
import com.wxyzz.canteencommon.entity.ordermanager.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderMapper {

    // 分页查询
    List<OrderListVo> selectOrder(@Param("orderId") Integer orderId,
                                  @Param("memberId") Integer memberId,
                                  @Param("startTime") Date startTime,
                                  @Param("endTime") Date endTime,
                                  @Param("orderType") String orderType,
                                  @Param("belongingStoreId") Integer belongingStoreId,
                                  @Param("paymentStatus") String paymentStatus,
                                  @Param("distributionStatus") String distributionStatus);

    // 查询某个数据
    OrderListVo selectOneOrder(Integer orderId);
    // 订单修改
    int updateOrder(Order order);

    // 删除订单
    int deleteOrder(Integer orderId);

    // 通过订单号查询会员信息
    MemberInfoVo selectMemberInfoByOrderNumber(String orderNumber);

    // 查询某个数据通过订单号
    OrderListVo selectOrderByOrderNumber(String orderNumber);
}
